#include "StdAfx.h"
#include "CharacterOperations.h"
#include <cctype>

/* Character Comparison */
bool IsAddOp(char c)
{
	return c == '+' || c == '-';
}

bool IsMulOp(char c)
{
	return c == '*' || c == '/';
}

bool IsLetter(char c)
{
	return isalpha(c);
}

bool IsNum(char c)
{
	return isdigit(c);
}

bool IsAlNum(char c)
{
	return IsLetter(c) || IsNum(c);
}

bool IsWhite(char c)
{
	return isspace(c);
}